<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>
        body{
            padding: 0;
        }
        #app{
            width:1080px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div id="app">
    <el-container>
        <el-header height="150px">
            <div style="width:1080px;margin: 0 auto;">

                <img src="logo.png" style="width: 400px;height:100px;vertical-align: middle" alt="">
                <div style="float: right;font-size: 15px;position: relative;top: 0;right: 0"><span>欢迎xxx回来 </span></div>
                <div style="float: right;padding-right: 10px;position: relative;top:20px;right: 0px">
                    <a href="">购物车</a>
                    <el-divider direction="vertical"></el-divider>
                    <a href="">我的账户</a>
                    <el-divider direction="vertical"></el-divider>
                    <a href="">新用户注册</a>
                    <el-divider direction="vertical"></el-divider>
                    <a href="">我要登录</a>
                    <el-divider direction="vertical"></el-divider>
                    <a href="">帮助中心</a></el-divider>
                </div>
                <div style="background-color: #f6f205;">
                    <el-menu style="background-color: #f3f0b5;width: 1050px"
                             :default-active="activeIndex" class="el-menu-demo" mode="horizontal"
                             @select="handleSelect">
                        <el-menu-item index="1">处理中心</el-menu-item>
                        <el-menu-item index="2">处理中心</el-menu-item>
                        <el-menu-item index="3">处理中心</el-menu-item>
                        <div style="float: right;position: relative;top: 10px">
                            <el-input placeholder="请输入搜索内容">
                                <el-button slot="append" icon="el-icon-search" @click="search()"></el-button>
                            </el-input>
                        </div>
                    </el-menu>
                </div>
            </div>
        </el-header>
        <el-container style="margin: 40px 0 0 40px;">
            <el-aside>
                <div style="width: 250px;height: 600px;border: 5px solid #FF7744">
                    <div style="margin-left: 65px">
                        <div>
                            <img src="img.png" alt="" width="100">
                        </div>
                        <p style="margin: 10px 0 10px 20px;height: 20px;line-height: 20px">用户名</p>
                        <input type="button" value="切换账号" style="margin-left: 10px">
                    </div>
                    <hr>
                    <div>
                        <el-menu
                                default-active="2"
                                class="el-menu-vertical-demo"
                                @open="handleOpen"
                                @close="handleClose"
                                background-color="#888800 "
                                text-color="#fff"
                                active-text-color="#ffd04b"
                                @select="handlerSelect"
                        style="height: 441px">
                            <el-menu-item index="1">
                                <i class="el-icon-s-custom"></i>
                                <span>个人信息</span>
                            </el-menu-item>
                            <el-menu-item index="2">
                                <i class="el-icon-s-order"></i>
                                <span slot="title">我的订单</span>
                            </el-menu-item>
                            <el-menu-item index="3">
                                <i class="el-icon-office-building"></i>
                                <span slot="title">地址管理</span>
                            </el-menu-item>
                            <el-menu-item index="4">
                                <i class="el-icon-shopping-cart-full"></i>
                                <span slot="title">我的购物车</span>
                            </el-menu-item>
                            <el-menu-item index="5">
                                <i class="el-icon-star-off"></i>
                                <span>收藏夹</span>
                            </el-menu-item>
                            <el-menu-item index="6">
                                <i class="el-icon-s-tools"></i>
                                <span>账号设置</span>
                            </el-menu-item>
                        </el-menu>
                    </div>
                </div>
            </el-aside>
            <el-main>
                <div style="text-align: left;font-size:20px;" v-if="currentIndex=='1'">
                    <p>&nbsp;用&nbsp;户&nbsp;ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;123455</p>
                    <br>
                    <p>昵&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;来来来</p>
                    <br>
                    <p>手机号码:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;123456789011</p>
                    <br>
                    <p>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;123456@qq.com</p>
                    <br>
                    <p>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;男</p>
                    <br>
                    <p>入驻时间:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2020年2月12日</p>
                </div>
                <div v-if="currentIndex=='2'">
                    <template>
                        <el-table
                                :data="tableData"
                                style="width: 1080px">
                            <el-table-column
                                    prop="index"
                                    label="序号"
                                    width="180">
                            </el-table-column>
                            <el-table-column
                                    prop="name"
                                    label="姓名"
                                    width="180">
                            </el-table-column>
                            <el-table-column
                                    prop="price"
                                    label="价格">
                            </el-table-column>

                            <el-table-column
                                    prop="category"
                                    label="类别">
                            </el-table-column>

                            <el-table-column
                                    prop="num"
                                    label="数量">
                            </el-table-column>
                            <el-table-column
                                    prop="money"
                                    label="小计">
                            </el-table-column>
                        </el-table>
                    </template>
                </div>
                <div v-if="currentIndex=='3'">
                    <template>
                        <el-table
                        :data="addressArr"
                        style="width: 570px;">
                            <el-table-column
                                prop="address"
                                label="地址">
                            </el-table-column>
                            <el-table-column
                                label="操作">
                                <el-button type="danger">删除</el-button>
                                <el-button type="primary">修改</el-button>
                            </el-table-column>
                        </el-table>
                    </template>
                </div>
            </el-main>
        </el-container>
    </el-container>

</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<!-- import axios -->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                activeIndex: '',
                currentIndex:"2",
                tableData: [{
                    index: '1',
                    name: 'java',
                    price: '44.5',
                    category:"计算机",
                    num:'1',
                    money:"44.5"
                }, {
                    index: '2',
                    name: 'java',
                    price: '44.5',
                    category:"计算机",
                    num:'1',
                    money:"44.5"
                }, {
                    index: '3',
                    name: 'java',
                    price: '44.5',
                    category:"计算机",
                    num:'1',
                    money:"44.5"
                }, {
                    index: '4',
                    name: 'java',
                    price: '44.5',
                    category:"计算机",
                    num:'1',
                    money:"44.5"
                }],
                addressArr:[{address:"重庆省重庆市渝北区重庆互联网学院"},{address:"北京省北京市朝阳区178号"}]
            }
        },
        methods: {
            handleSelect() {

            },
            handlerSelect(key){
                v.currentIndex=key;
            },
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    })
</script>
</html>